import { createRouter, createMemoryHistory } from 'vue-router';

const routes = [
  {
    path:'/getBookTid',//路由路径
    name:'GetBookTid',//路由名称
    /*2. 懒加载的方式，访问的时候才加载
   */
    component: ()=>import('../components/BookList.vue')
    /*component: home 直接导入*/
  },
];

const router = createRouter({
  history: createMemoryHistory(),
  routes
});

export { router };